package cn.icanci.ladybird.service;

import cn.icanci.ladybird.pojo.entity.TicketDetailsTicketPriceMiddle;

import java.util.List;

/**
 * (TicketDetailsTicketPriceMiddle)表服务接口
 *
 * @author makejava
 * @since 2020-09-29 20:44:05
 */
public interface TicketDetailsTicketPriceMiddleService {

    /**
     * 通过ID查询单条数据
     *
     * @param ticketDetailsTicketPriceId 主键
     * @return 实例对象
     */
    TicketDetailsTicketPriceMiddle queryById(Long ticketDetailsTicketPriceId);

    /**
     * 查询多条数据
     *
     * @param offset 查询起始位置
     * @param limit  查询条数
     * @return 对象列表
     */
    List<TicketDetailsTicketPriceMiddle> queryAllByLimit(int offset, int limit);

    /**
     * 新增数据
     *
     * @param ticketDetailsTicketPriceMiddle 实例对象
     * @return 实例对象
     */
    TicketDetailsTicketPriceMiddle insert(TicketDetailsTicketPriceMiddle ticketDetailsTicketPriceMiddle);

    /**
     * 修改数据
     *
     * @param ticketDetailsTicketPriceMiddle 实例对象
     * @return 实例对象
     */
    TicketDetailsTicketPriceMiddle update(TicketDetailsTicketPriceMiddle ticketDetailsTicketPriceMiddle);

    /**
     * 通过主键删除数据
     *
     * @param ticketDetailsTicketPriceId 主键
     * @return 是否成功
     */
    boolean deleteById(Long ticketDetailsTicketPriceId);

    /**
     * 根据票的id查询其对应的价格
     * @param ticketDetailsId 票的id
     * @return 返回中间表对象
     */
    List<TicketDetailsTicketPriceMiddle> queryByTicketDetailsId(Long ticketDetailsId);
    /**
     * 通过ID查询多条数据
     *
     * @param ticketDetailsTicketPriceId 主键
     * @return 实例对象集合
     */
    List<TicketDetailsTicketPriceMiddle> queryManyById(Long ticketDetailsTicketPriceId);
}